<script setup>
import {ref} from "vue";
import Child1 from "./Child1.vue";

let child = ref(null)

function btnClicked() {
  console.log(child.value.info);
}

</script>

<template>
  <child1 ref="child"></child1>
  <button v-on:click="btnClicked">获取</button>
</template>

<style scoped>

</style>